package days.of.evil.core.ressource;

import java.util.ArrayList;
import java.util.List;

import days.of.evil.core.ressource.external.Ressource;

public class Statue implements Ressource {
	
	private int bonus;
	private int nbDiablotinPerHour = 25;
	private String name = "Statue";
	private double makingPrice = 2.4;
	private double sellingPrice;
	private List<Ressource> listRessource;
	
	public Statue() {
		this.listRessource = new ArrayList<Ressource>();
		for (int i = 0; i < 30; i++) {
			this.listRessource.add(new Pierre());
		}
		//Initialisation bonus 
		//Initialisation sellingprice
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public double getMakingPrice() {
		double result = makingPrice;
		for (Ressource res : this.listRessource) {
			result += res.getMakingPrice();
		}
		return result;
	}

	@Override
	public double getSellingPrice() {
		double result = sellingPrice;
		for (Ressource res : this.listRessource) {
			result += res.getSellingPrice();
		}
		return result;
	}
	
	@Override
	public int getNbDiablotinPerHour() {
		return this.nbDiablotinPerHour;
	}

	@Override
	public int getBonus() {
		return this.bonus;
	}
	
	@Override
	public void setBonus(int bonus) {
		this.bonus = bonus;
	}
	
}
